package org.springframework.boot.web.practice.filter;

import org.springframework.stereotype.Component;
import org.springframework.web.filter.CharacterEncodingFilter;

import javax.servlet.ServletException;

@Component
public class SimpleCharSetFilter extends CharacterEncodingFilter {

    @Override
    protected void initFilterBean() throws ServletException {
        super.initFilterBean();
        this.setEncoding("UTF-8");
    }
}